tests: Handle EPIPE failures when head terminates
authorAlex Kiernan <alex.kiernan@gmail.com>
Thu, 31 Oct 2019 11:30:00 +0000 (11:30 +0000)
committerAlex Kiernan <alex.kiernan@gmail.com>
Fri, 1 Nov 2019 05:05:53 +0000 (05:05 +0000)
commitfb519f0361565cad0d340095263a1e8866ec4f89
treede137557672ce2e0739373248916c12fa526bdee
parent4d17cd917fe4fb67d2f9e4881b6693ac7289f423
tests: Handle EPIPE failures when head terminates

When using musl, it appears that the default is line buffered output, so
when `head -1` reads from a pipe we have to handle the source end of the
pipe getting EPIPE.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
tests/pull-test.sh
tests/test-pull-mirrorlist.sh